package com.cci.kangdao.controller;

import com.cci.kangdao.service.FileUploadService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author William Du
 * @date 2020/2/6
 */
@Controller
@RequestMapping("/file")
public class FileUploadController {

    @Resource
    private FileUploadService fileUploadService;

    @RequestMapping("/upload.aspx")
    public void uploadFile(HttpServletRequest request){
        fileUploadService.uploadFileToAzure(request);
    }

}
